
<div class="widget_box">
    <div class="block">    
	<div class="block-title"><h2><?php echo Yii::t('site','Categories');?></h2></div>    
            <div class="block-content vertnav-container">        

<div class="">        
    <ul id="vertnav">
	<?php foreach($this->getAllCategories() as $category): ?>
        <li class="next level0-inactive level0 inactive">
            <span class="vertnav-cat">
                <?php echo CHtml::link(CHtml::encode($category->name), $category->getUrl()); ?>
            </span>
            <?php if(count($category->categories) > 0) {?>
                <div onclick="setMenu(this)" class="menu_arrow"></div>  
                    <ul class="level2" style="display: none;">
                        <?php foreach($category->categories as $subcat): ?>
                            <li class="level1-inactive level1 inactive">
                                <span class="vertnav-cat">
                                    <?php echo CHtml::link(CHtml::encode($subcat->name), $subcat->getUrl()); ?>
                                </span>
                                <!--
                                <?php if (count($subcat->categories) > 0) {?>
                                    <div onclick="setMenu(this)" class="menu_arrow"></div>  
                                        <ul class="level2" style="display: none;">
                                            <?php foreach($subcat->categories as $subcat2): ?>
                                                <li class="level1-inactive level1 inactive">
                                                    <span class="vertnav-cat">
                                                        <?php echo CHtml::link(CHtml::encode($subcat2->name), $subcat2->getUrl()); ?>
                                                    </span>
                                                </li>
                                            <?php endforeach; ?>
                                        </ul>
                                <?php }?>
                                -->
                            </li>
                        <?php endforeach; ?>
                    </ul>
            <?php }?>
        </li>
	<?php endforeach; ?>
    </ul>
</div>
                
</div></div></div>
